let Mock = require("mockjs")
let arrs = Mock.mock({
    "title|12": [{
        imgsrc: "@image('50x50', '@color()', '#FFF', 'png', '!')",
        text: "@ctitle(3, 5)"
    }],
    "nav|4": [{
        imgsrc: "@image('50x50', '@color()', '#FFF', 'png', '!')",
        price: "@increment(1000)"
    }],
    "list|20": [{
        imgsrc: "@image('177x177', '@color()', '#FFF', 'png', '!')",
        title: "@csentence",
        num: "@increment(10)",
        price: "@increment(100)",
        count: "@increment(10)"
    }],
    type: [{
            "text": "推荐",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "食品",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "女装",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "手机",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "男装",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "鞋包",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "电器",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "健康",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "百货",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "母婴",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "数码",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "内衣",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "生鲜",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "洗护",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "美妆",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "运动",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "家装",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "家纺",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "车品",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "图书",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "充值",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "海淘",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
        {
            "text": "品牌",
            "children|15": [{
                "image": "@image('50x50','@color','#fff','!')",
                "text": "@cword(4)"
            }]
        },
    ]
})
Mock.mock("/api", "get", () => {
    return arrs
})
Mock.mock("/login", "post", function () {
    return {
        message: "验证成功",
        token: "hello23"
    }
})